from applications.extensions import ma
from marshmallow import fields


class PageOutSchema(ma.Schema):
    id = fields.Integer()
    book_id = fields.Integer()
    book_name = fields.Str()
    title = fields.Str()
    content = fields.Str()
    sort = fields.Integer()
    status = fields.Integer()
    changed = fields.Integer()
    update_time = fields.DateTime()


class PageIndexOutSchema(ma.Schema):
    id = fields.Integer()
    book_id = fields.Integer()
    book_name = fields.Str()
    title = fields.Str()
    content = fields.Str()
    sort = fields.Integer()
    status = fields.Integer()


